<?php
/**
{
    "remarkId": "INT //评价id",
    "remark": "TEXT //评价内容@search; ",
    "replyCount": "INT //评论数@noList",
    "likeCount": "INT //喜欢数@noList",
    "parentRemarkId": "INT //父评论@foreign::tbl_remark_teacher; @search; ",
    "teacherId": "INT //教师@foreign::tbl_teacher; @search; ",
    "finalScore": "FLOAT //综合得分",
    "effectScore": "FLOAT //效果评分",
    "serviceScore": "FLOAT //服务评分",
    "schoolScore": "FLOAT //机构评分",
    "totalScore": "FLOAT //总评分",
    "anonymous": "TINYINT //匿名评价@status; 0::公开; 1::匿名; ",
    "uid": "INT //用户@foreign::tbl_user; @hide; ",
    "nick": "VARCHAR //昵称@search; @noList; ",
    "avatar": "VARCHAR //头像@image; @noList; ",
    "ip": "VARCHAR //ip@noList; ",
    "status": "TINYINT //状态@status; 0::待审核; 3::通过审核::@admin; 4::不通过::@admin; 88::删除::@admin; @search; ",
    "created": "DATETIME //创建时间@noLoad"
}
 */

class RemarkTeacher extends Base
{
    
	public $remarkId= '';//评价id
	public $remark= '';//评价内容@search;
	public $replyCount= "0";//评论数@noList
	public $likeCount= "0";//喜欢数@noList
	public $parentRemarkId= "0";//父评论@foreign::tbl_remark_teacher;@search;
	public $teacherId= "0";//教师@foreign::tbl_teacher;@search;
	public $finalScore= "0";//综合得分
	public $effectScore= "0";//效果评分
	public $serviceScore= "0";//服务评分
	public $schoolScore= "0";//机构评分
	public $totalScore= "0";//总评分
	public $anonymous= "0";//匿名评价@status;0::公开;1::匿名;
	public $uid= "0";//用户@foreign::tbl_user;@hide;
	public $nick= NULL;//昵称@search;@noList;
	public $avatar= NULL;//头像@image;@noList;
	public $ip= '';//ip@noList;
	public $status= "0";//状态@status;0::待审核;3::通过审核::@admin;4::不通过::@admin;88::删除::@admin;@search;
	public $created= 'CURRENT_TIMESTAMP';//创建时间@noLoad

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_remark_teacher';
    }
    
    public  function key(){
        return 'remarkId';
    }


    
    public static  function hideField()
    {
        return array (  0 => 'uid',);
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return [];
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'created',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'RemarkTeacher';
    }
    
    public  function field()
    {
        return array (  'remarkId' =>   array (    0 => 'INT',    1 => 11,    2 => '评价id',  ),  'remark' =>   array (    0 => 'TEXT',    1 => 0,    2 => '评价内容@search;',  ),  'replyCount' =>   array (    0 => 'INT',    1 => 11,    2 => '评论数@noList',  ),  'likeCount' =>   array (    0 => 'INT',    1 => 11,    2 => '喜欢数@noList',  ),  'parentRemarkId' =>   array (    0 => 'INT',    1 => 11,    2 => '父评论@foreign::tbl_remark_teacher;@search;',  ),  'teacherId' =>   array (    0 => 'INT',    1 => 11,    2 => '教师@foreign::tbl_teacher;@search;',  ),  'finalScore' =>   array (    0 => 'FLOAT',    1 => 0,    2 => '综合得分',  ),  'effectScore' =>   array (    0 => 'FLOAT',    1 => 0,    2 => '效果评分',  ),  'serviceScore' =>   array (    0 => 'FLOAT',    1 => 0,    2 => '服务评分',  ),  'schoolScore' =>   array (    0 => 'FLOAT',    1 => 0,    2 => '机构评分',  ),  'totalScore' =>   array (    0 => 'FLOAT',    1 => 0,    2 => '总评分',  ),  'anonymous' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '匿名评价@status;0::公开;1::匿名;',  ),  'uid' =>   array (    0 => 'INT',    1 => 11,    2 => '用户@foreign::tbl_user;@hide;',  ),  'nick' =>   array (    0 => 'VARCHAR',    1 => 50,    2 => '昵称@search;@noList;',  ),  'avatar' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '头像@image;@noList;',  ),  'ip' =>   array (    0 => 'VARCHAR',    1 => 15,    2 => 'ip@noList;',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;0::待审核;3::通过审核::@admin;4::不通过::@admin;88::删除::@admin;@search;',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建时间@noLoad',  ),);
    }


}